// src\views\sendbox\publish-manage\published.jsx
// 发布管理--已发布
import NewsPublish from '@/components/publish-manage/NewsPublish'
import usePublish from '@/components/publish-manage/usePublish'
import { Button } from 'antd';
import React from 'react'

export default function Publish() {
  //publishState=2表示已发布的新闻
  const {dataSource,handleSunset}=usePublish(2);
  return (
    <NewsPublish dataSource={dataSource} button={(id)=>{return <Button type='primary' onClick={()=>handleSunset(id)}>下线</Button>}}></NewsPublish>
  )
}
